var app = new Vue({
  el: '#app',
  data: {
    columns: [
      {
        title: '姓名',
        key: 'name'
      },
      {
        title: '年龄',
        key: 'age',
        sortable: true
      },
      {
        title: '出生日期',
        key: 'birthday',
        sortable: true
      },
      {
        title: '地址',
        key: 'address'
      }
    ],
    data: [
      {
        name: '王小明',
        age: 18,
        birthday: '1999-02-21',
        address: 'xx惺惺惜惺惺xx'
      },{
        name: '张小刚',
        age: 25,
        birthday: '1992-02-21',
        address: 'xx惺惺惜惺惺xx'
      },{
        name: '李晓红',
        age: 30,
        birthday: '1987-02-21',
        address: 'xx惺惺惜惺惺xx'
      },{
        name: '周晓薇',
        age: 26,
        birthday: '1991-02-21',
        address: 'xx惺惺惜惺惺xx'
      }
    ]
  },
  methods: {
    handleAddData() {
      this.data.push({
        name: '刘晓彤',
        age: 19,
        birthday: '1998-02-21',
        address: 'xx惺惺惜惺惺xx'
      })
    }
  },
})